﻿using System;
using System.Collections.Generic;
using System.Text;

namespace SimpleOrmCFPC.Core.Query.expressions.ExprssionCompilers
{
    public class CastWhereElement : IWhereElement
    {
        public IWhereElement Element { get; set; }
        public Type Type { get; set; }

        public CastWhereElement(Type type, IWhereElement element)
        {
            Element = element;
            Type = type;
        }

        public void Visit(WhereToSqlBuilder visitor, StringBuilder builder, List<object> parameters)
        {
            visitor.Visit(this, builder, parameters);
        }
    }
}